package com.blink.zkclient.operate;

import com.blink.base.TestZK;
import com.blink.zkclient.ZkClientCreator;
import org.I0Itec.zkclient.ZkClient;
import org.junit.jupiter.api.Test;

/**
 * <Description> 使用ZkClient创建节点</Description>
 * <ClassName> CreateNodeSample</ClassName>
 *
 * @Author liuxianzhao
 * @Date 2018年01月13日 11:50
 */
public class CreateNodeSample extends TestZK {

    @Test
    public void testCreateNode() {
        ZkClient zkClient = ZkClientCreator.getZkClient();
        String path = "/zk-book/c1";
        zkClient.createPersistent(path, true);
        sleep();
    }
}